home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / quad / RCS / Quad_Arith.man,v < prev    next >
Encoding:
Text File  |  1991-03-18  |  1.7 KB  |  76 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     91.03.18.12.19.22;  author kupfer;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Man page for quad arithmetic routines.
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @'\" Copyright 1991 Regents of the University of California
  27. '\" Permission to use, copy, modify, and distribute this
  28. '\" documentation for any purpose and without fee is hereby
  29. '\" granted, provided that this notice appears in all copies.
  30. '\" The University of California makes no representations about
  31. '\" the suitability of this material for any purpose.  It is
  32. '\" provided "as is" without express or implied warranty.
  33. '\" 
  34. '\" $Header: /sprite/lib/forms/RCS/lib.man,v 1.3 91/01/07 17:55:52 mottsmth Exp $ SPRITE (Berkeley)
  35. '/" 
  36. .so \*(]ltmac.sprite
  37. .HS Quad lib
  38. .BS
  39. '\" Note:  do not modify the .SH NAME line immediately below!
  40. .SH NAME
  41. Quad_AddUns, Quad_AddUnsLong \- Arithmetic operations on 64-bit integers
  42. .SH SYNOPSIS
  43. .nf
  44. \fB#include <quad.h>\fR
  45. .sp
  46. void
  47. \fBQuad_AddUns\fR(\fIuQuad1\fR, \fIuQuad2\fR, \fIuResultPtr\fR)
  48. .sp
  49. void
  50. \fBQuad_AddUnsLong\fR(\fIuQuad1\fR, \fIuLong\fR, \fIuResultPtr\fR)
  51. .SH ARGUMENTS
  52. .AS u_quad *uResultPtr
  53. .AP u_quad uQuadN in
  54. N'th unsigned quad operand
  55. .AP u_long uLong in
  56. unsigned long operand
  57. .AP u_quad *uResultPtr out
  58. unsigned quad result
  59. .BE
  60.  
  61. .SH DESCRIPTION
  62. .PP
  63. Sprite provides some common operations on 64-bit integers.
  64. .B Quad_AddUns
  65. adds two unsigned quads together.
  66. .B Quad_AddUnsLong 
  67. adds an unsigned long to an unsigned quad.  In both cases, one of the
  68. quad operands can also be used to hold the result.
  69. .PP
  70. It is expected that more quad operations will be added to the library
  71. as they are needed for different applications.
  72.  
  73. .SH KEYWORDS
  74. quad, arithmetic, counter
  75. @
  76.